﻿namespace EasyGo.Data.Mapping
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using EasyGo.Domain.Model;
    using System.Data.Entity.ModelConfiguration;

    public class CompanyMap : EntityTypeConfiguration<Company>
    {
        public CompanyMap()
        {
            this.ToTable("Company");
            this.Property(x => x.Id).HasColumnName("CompanyId");
            this.Property(x => x.Name).HasColumnName("CompanyName");
            this.Property(x => x.Description).HasColumnName("Info");
        }
    }
}
